package cn.inno.index;

import cn.inno.service.BaseService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 导航服务类
 *
 * @author LeungZengJian
 */
@Service
public class IndexService extends BaseService {

    @Autowired
    private IndexDao asideDao;

    public JSONObject list(String adminId) {

        Map formMap = new HashMap();
        formMap.put("adminId", adminId);

        List lists = this.asideDao.list(formMap);

        JSONObject jsonObject = new JSONObject();

        jsonObject.put(KEY_DATA, lists);

        return this.executeRerutn(jsonObject);
    }

}
